package pharao.domain;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.OneToOne;

@Entity
public class User {

	/**
	 * @uml.property  name="buchDesWissens"
	 * @uml.associationEnd  multiplicity="(1 1)" inverse="user:pharao.domain.BuchDesWissens"
	 */
	private BuchDesWissens buchDesWissens = new BuchDesWissens();

	/**
	 * enthält die Id des Users
	 * @uml.property  name="id"
	 */
	private int id;

	/**
	 * @uml.property  name="landkarte"
	 * @uml.associationEnd  multiplicity="(1 1)" inverse="user:pharao.domain.Landkarte"
	 */
	private Landkarte landkarte = new Landkarte();

	/**
	 * enthält den Usernamen
	 * @uml.property  name="name"
	 */
	private String name = "";

	/**
	 * enthält das UserPasswort
	 * @uml.property  name="password"
	 */
	private String password = "";

	/**
	 * Getter of the property <tt>buchDesWissens</tt>
	 * @return  Returns the buchDesWissens.
	 * @uml.property  name="buchDesWissens"
	 */
	@OneToOne
	public BuchDesWissens getBuchDesWissens() {
		return buchDesWissens;
	}

	/**
	 * Getter of the property <tt>id</tt>
	 * @return  Returns the id.
	 * @uml.property  name="id"
	 */
	@Id
	@GeneratedValue
	public int getId() {
		return id;
	}

	/**
	 * Getter of the property <tt>landkarte</tt>
	 * @return  Returns the landkarte.
	 * @uml.property  name="landkarte"
	 */
	@OneToOne
	public Landkarte getLandkarte() {
		return landkarte;
	}

	/**
	 * Getter of the property <tt>name</tt>
	 * @return  Returns the name.
	 * @uml.property  name="name"
	 */
	public String getName() {
		return name;
	}

	/**
	 * Getter of the property <tt>password</tt>
	 * @return  Returns the password.
	 * @uml.property  name="password"
	 */
	public String getPassword() {
		return password;
	}

	/**
	 * Setter of the property <tt>buchDesWissens</tt>
	 * @param buchDesWissens  The buchDesWissens to set.
	 * @uml.property  name="buchDesWissens"
	 */
	public void setBuchDesWissens(BuchDesWissens buchDesWissens) {
		this.buchDesWissens = buchDesWissens;
	}

	/**
	 * Setter of the property <tt>id</tt>
	 * @param id  The id to set.
	 * @uml.property  name="id"
	 */
	public void setId(int id) {
		this.id = id;
	}

	/**
	 * Setter of the property <tt>landkarte</tt>
	 * @param landkarte  The landkarte to set.
	 * @uml.property  name="landkarte"
	 */
	public void setLandkarte(Landkarte landkarte) {
		this.landkarte = landkarte;
	}

	/**
	 * Setter of the property <tt>name</tt>
	 * @param name  The name to set.
	 * @uml.property  name="name"
	 */
	public void setName(String name) {
		this.name = name;
	}

	/**
	 * Setter of the property <tt>password</tt>
	 * @param password  The password to set.
	 * @uml.property  name="password"
	 */
	public void setPassword(String password) {
		this.password = password;
	}

}
